import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};

/** 获取富文本列表 */
export const getqualityandreliability = () => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/qualityandreliability/getpage`));
};



/** 修改富文本 */
export const changequalityandreli = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/qualityandreliability/changequalityandreli"), { data });
};

/** 新增证书 */
export const addpicture = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/qualityandreliability/addpicture"), { data });
};


/** 删除证书 */
export const delqualityandreli = (id) => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/qualityandreliability/delqualityandreli/${id}`));
};

/** 获取证书 */
export const getpagepic = (id) => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/qualityandreliability/getpagepic`));
};

